<?php
//рус
include_once (_CORE_PATH . "system_collection.php");
class ctrls_collection_class extends system_collection_class
{
    private $_module;
    /**
		задаем имя класса объектов коллекции
     */
    protected $_itemClassName = 'controller_prototype_class';
    protected function __construct (active_module_class $module)
    {
        $this->_module = $module;
    }
    static public function GetInstance ($module)
    {
        return new self($module);
    }
    public function Get ($ctrlName)
    {
        return SysLoader::GetCtrl($ctrlName, $this->_module);
    }
    public function IsExists ($ctrlName)
    {
        return $this->_module->IsCtrlExists($ctrlName);
    }
}